import { _decorator, Component, Event } from 'cc';
import { EventManager } from '../../RunTime/EventManager';
import { EVENT_ENUM, CTRL_ENUM } from '../../Enum';
const { ccclass, property } = _decorator;


@ccclass('MenuManager')
export class MenuManager extends Component {

  handleRevoke() {
    EventManager.getInstance().emit(EVENT_ENUM.REVOKE_STEP)
  }

  handleQuit() {
    EventManager.getInstance().emit(EVENT_ENUM.QUIT)
  }

  handleRestart() {
    EventManager.getInstance().emit(EVENT_ENUM.RESTART)
  }

}
